package com.it.tydic.estate.module.service;

import com.it.tydic.estate.common.aop.Result;
import com.it.tydic.estate.module.model.inner.TbLoginLog;
import com.it.tydic.estate.module.model.inner.TbUser;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface UserService {

    int deleteById(String id);

    TbUser findById(String id);

    TbUser findByUserName(String userName);

    int deleteByIds(List<String> idList);

    int addOrUpdate(TbUser tbUser);

    Map<String, Object> findAllByPage(Map<String, String> param);

    int updateUser2Role(List<String> userIds, String roleId);

    List<String> findRolesByUserId(String userId);

    void batchInsertLoginLog(List<TbLoginLog> list);

    int updateUser2Group(List<String> userIds, String groupId);
}
